:root {
    --primary-color: #185ee0;
    --secondary-color: #e6eef9;
    --tab-height: 32px;
    --tab-width: 100px;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: rgba(230, 238, 249, 0.5);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.tabs {
    display: flex;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 1px 0 rgba(24, 94, 224, 0.15),
    0 6px 12px 0 rgba(24, 94, 224, 0.15);
    padding: 0.75rem;
    border-radius: 99px;
}

.tabs * {
    z-index: 2;
}

input[type="radio"] {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--tab-height);
    width: var(--tab-width);
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 99px;
    cursor: pointer;
    transition: color 0.15s ease-in;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: 0.75rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
    transition: 0.15s ease-in;
}

input[type="radio"]:checked + label {
    color: var(--primary-color);
}

input[type="radio"]:checked + label > .notification {
    background-color: var(--primary-color);
    color: #fff;
}

input[id="week"]:checked ~ .glider {
    transform: translateX(0);
}

input[id="month"]:checked ~ .glider {
    transform: translateX(100%);
}

.glider {
    position: absolute;
    display: flex;
    height: var(--tab-height);
    width: var(--tab-width);
    background-color: var(--secondary-color);
    z-index: 1;
    border-radius: 99px;
    transition: 0.25s ease-out;
}
